<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('虾皮订单收入信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>订单号：</label>
                                <input type="text" name="orderSn"/>
                            </li>
                            <li>
                                <label>代管金额：</label>
                                <input type="text" name="escrowAmount"/>
                            </li>
                            <li>
                                <label>买家支付金额：</label>
                                <input type="text" name="buyerTotalAmount"/>
                            </li>
                            <li>
                                <label>原价：</label>
                                <input type="text" name="originalPrice"/>
                            </li>
                            <li>
                                <label>卖家折扣金额：</label>
                                <input type="text" name="sellerDiscount"/>
                            </li>
                            <li>
                                <label>平台折扣金额：</label>
                                <input type="text" name="shopeeDiscount"/>
                            </li>
                            <li>
                                <label>卖家优惠券金额：</label>
                                <input type="text" name="voucherFromSeller"/>
                            </li>
                            <li>
                                <label>平台优惠券金额：</label>
                                <input type="text" name="voucherFromShopee"/>
                            </li>
                            <li>
                                <label>虾皮币金额：</label>
                                <input type="text" name="coins"/>
                            </li>
                            <li>
                                <label>买家支付运费：</label>
                                <input type="text" name="buyerPaidShippingFee"/>
                            </li>
                            <li>
                                <label>买家交易手续费：</label>
                                <input type="text" name="buyerTransactionFee"/>
                            </li>
                            <li>
                                <label>跨境税收：</label>
                                <input type="text" name="crossBorderTax"/>
                            </li>
                            <li>
                                <label>促销抵消金额：</label>
                                <input type="text" name="paymentPromotion"/>
                            </li>
                            <li>
                                <label>平台佣金：</label>
                                <input type="text" name="commissionFee"/>
                            </li>
                            <li>
                                <label>服务费：</label>
                                <input type="text" name="serviceFee"/>
                            </li>
                            <li>
                                <label>卖家交易手续费：</label>
                                <input type="text" name="sellerTransactionFee"/>
                            </li>
                            <li>
                                <label>卖家返现虾皮币：</label>
                                <input type="text" name="sellerCoinCashBack"/>
                            </li>
                            <li>
                                <label>代收税收：</label>
                                <input type="text" name="escrowTax"/>
                            </li>
                            <li>
                                <label>最终运费：</label>
                                <input type="text" name="finalShippingFee"/>
                            </li>
                            <li>
                                <label>实际运费：</label>
                                <input type="text" name="actualShippingFee"/>
                            </li>
                            <li>
                                <label>订单重量：</label>
                                <input type="text" name="orderChargeableWeight"/>
                            </li>
                            <li>
                                <label>平台运费补贴：</label>
                                <input type="text" name="shopeeShippingRebate"/>
                            </li>
                            <li>
                                <label>第三方运费折扣：</label>
                                <input type="text" name="shippingFeeDiscountFrom3pl"/>
                            </li>
                            <li>
                                <label>卖家运费补贴：</label>
                                <input type="text" name="sellerShippingDiscount"/>
                            </li>
                            <li>
                                <label>预估运费：</label>
                                <input type="text" name="estimatedShippingFee"/>
                            </li>
                            <li>
                                <label>卖家优惠券编码：</label>
                                <input type="text" name="sellerVoucherCode"/>
                            </li>
                            <li>
                                <label>Shopee争议解决中心的可调整退款金额：</label>
                                <input type="text" name="drcAdjustableRefund"/>
                            </li>
                            <li>
                                <label>买方为特定订单中的项目支付的最终金额：</label>
                                <input type="text" name="costOfGoodsSold"/>
                            </li>
                            <li>
                                <label>特定订单中每个项目的Shopee折扣的总和：</label>
                                <input type="text" name="originalCostOfGoodsSold"/>
                            </li>
                            <li>
                                <label>部分退还时退还给卖方的金额：</label>
                                <input type="text" name="sellerReturnRefund"/>
                            </li>
                            <li>
                                <label>卖家预计收到金额：</label>
                                <input type="text" name="escrowAmountPrice"/>
                            </li>
                            <li>
                                <label>信用卡活动金额：</label>
                                <input type="text" name="creditCardPromotion"/>
                            </li>
                            <li>
                                <label>信用卡交易手续费：</label>
                                <input type="text" name="creditCardTransactionFee"/>
                            </li>
                            <li>
                                <label>订单采购价：</label>
                                <input type="text" name="purchasePrice"/>
                            </li>
                            <li>
                                <label>打包费用：</label>
                                <input type="text" name="warehousePackageAmount"/>
                            </li>
                            <li>
                                <label>订单利润：</label>
                                <input type="text" name="orderProfit"/>
                            </li>
                            <li>
                                <label>创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择创建时间" name="createDate"/>
                            </li>
                            <li>
                                <label>最后修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后修改时间" name="lastUpdateDate"/>
                            </li>
                            <li>
                                <label>最后修改人：</label>
                                <input type="text" name="lastUpdateBy"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="msOrder:OrderIncome:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="msOrder:OrderIncome:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="msOrder:OrderIncome:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="msOrder:OrderIncome:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('msOrder:OrderIncome:edit')}]];
        var removeFlag = [[${@permission.hasPermi('msOrder:OrderIncome:remove')}]];
        var prefix = ctx + "msOrder/OrderIncome";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "虾皮订单收入信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'orderIncomeId',
                    title: '表的id',
                    visible: false
                },
                {
                    field: 'orderSn',
                    title: '订单号'
                },
                {
                    field: 'escrowAmount',
                    title: '代管金额'
                },
                {
                    field: 'buyerTotalAmount',
                    title: '买家支付金额'
                },
                {
                    field: 'originalPrice',
                    title: '原价'
                },
                {
                    field: 'sellerDiscount',
                    title: '卖家折扣金额'
                },
                {
                    field: 'shopeeDiscount',
                    title: '平台折扣金额'
                },
                {
                    field: 'voucherFromSeller',
                    title: '卖家优惠券金额'
                },
                {
                    field: 'voucherFromShopee',
                    title: '平台优惠券金额'
                },
                {
                    field: 'coins',
                    title: '虾皮币金额'
                },
                {
                    field: 'buyerPaidShippingFee',
                    title: '买家支付运费'
                },
                {
                    field: 'buyerTransactionFee',
                    title: '买家交易手续费'
                },
                {
                    field: 'crossBorderTax',
                    title: '跨境税收'
                },
                {
                    field: 'paymentPromotion',
                    title: '促销抵消金额'
                },
                {
                    field: 'commissionFee',
                    title: '平台佣金'
                },
                {
                    field: 'serviceFee',
                    title: '服务费'
                },
                {
                    field: 'sellerTransactionFee',
                    title: '卖家交易手续费'
                },
                {
                    field: 'sellerCoinCashBack',
                    title: '卖家返现虾皮币'
                },
                {
                    field: 'escrowTax',
                    title: '代收税收'
                },
                {
                    field: 'finalShippingFee',
                    title: '最终运费'
                },
                {
                    field: 'actualShippingFee',
                    title: '实际运费'
                },
                {
                    field: 'orderChargeableWeight',
                    title: '订单重量'
                },
                {
                    field: 'shopeeShippingRebate',
                    title: '平台运费补贴'
                },
                {
                    field: 'shippingFeeDiscountFrom3pl',
                    title: '第三方运费折扣'
                },
                {
                    field: 'sellerShippingDiscount',
                    title: '卖家运费补贴'
                },
                {
                    field: 'estimatedShippingFee',
                    title: '预估运费'
                },
                {
                    field: 'sellerVoucherCode',
                    title: '卖家优惠券编码'
                },
                {
                    field: 'drcAdjustableRefund',
                    title: 'Shopee争议解决中心的可调整退款金额'
                },
                {
                    field: 'costOfGoodsSold',
                    title: '买方为特定订单中的项目支付的最终金额'
                },
                {
                    field: 'originalCostOfGoodsSold',
                    title: '特定订单中每个项目的Shopee折扣的总和'
                },
                {
                    field: 'sellerReturnRefund',
                    title: '部分退还时退还给卖方的金额'
                },
                {
                    field: 'escrowAmountPrice',
                    title: '卖家预计收到金额'
                },
                {
                    field: 'creditCardPromotion',
                    title: '信用卡活动金额'
                },
                {
                    field: 'creditCardTransactionFee',
                    title: '信用卡交易手续费'
                },
                {
                    field: 'purchasePrice',
                    title: '订单采购价'
                },
                {
                    field: 'warehousePackageAmount',
                    title: '打包费用'
                },
                {
                    field: 'orderProfit',
                    title: '订单利润'
                },
                {
                    field: 'createDate',
                    title: '创建时间'
                },
                {
                    field: 'lastUpdateDate',
                    title: '最后修改时间'
                },
                {
                    field: 'lastUpdateBy',
                    title: '最后修改人'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.orderIncomeId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderIncomeId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>